//
//  LRMacro.h
//  HNJYB_iOS_New
//
//  Created by panshen on 2017/10/23.
//  Copyright © 2017年 panshen. All rights reserved.
//

#ifndef LRMacro_h
#define LRMacro_h


#endif /* LRMacro_h */

//打印日志
#ifndef __OPTIMIZE__
#define NSLog(...) printf("%f %s\n",[[NSDate date]timeIntervalSince1970],[[NSString stringWithFormat:__VA_ARGS__]UTF8String]);
#endif

//提示
#define SHOWALERT(m) \
{\
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"温馨提示" message:m delegate:nil cancelButtonTitle:@"确认" otherButtonTitles:nil];\
[alert show]; \
}\

//设置圆角
#define LRViewBorderRadius(View, Radius, Width, Color)\
[View.layer setCornerRadius:(Radius)];\
[View.layer setMasksToBounds:YES];\
[View.layer setBorderWidth:(Width)];\
[View.layer setBorderColor:[Color CGColor]]\

//正式环境的接口地址
//#define HNServiceURL @"http://jgkckp.henanga.gov.cn/restservices/kckphnapprest"

//#define HNServiceURL @"http://jgkckpht.henanga.gov.cn/restservices/kckphnapprest"
//#define HNServiceURL @"https://jgkckpht.henanga.gov.cn/restservices/kckphnapprest"

//外网测试服务器
#define HNServiceURL @"http://220.231.252.128:8048/restservices/kckphnapprest"
//#define HNServiceURL @"http://211.154.149.115:8048/restservices/kckphnapprest"

//内网
//#define HNServiceURL @"http://192.168.4.243:86/KCKP/restservices/kckphnapprest"

//监听IP
#define auditMonitorIP @"http://jgkckpht.henanga.gov.cn:9100/stream?"



#define UserType [Globle getInstance].userType

#define LOCATIONTIMEKEY @"LOCATIONTIMEKEY"

#define GlobleInstance [Globle getInstance]

#define JsonResult [Util objectToJson:result]

//颜色宏定义
#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define RGB(r,g,b) RGBA(r,g,b,1.0)

#define HNBackColor [UIColor colorWithHexString:@"f5f5f5"]
#define HNBlue [UIColor colorWithPatternImage:[UIImage imageNamed:@"blue"]]
#define HNBoardColor [UIColor lightGrayColor].CGColor
#define HNGreen RGB(48, 177, 135)

//获取设备的物理高度
#define ScreenHeight [UIScreen mainScreen].bounds.size.height

//获取设备的物理宽度
#define ScreenWidth [UIScreen mainScreen].bounds.size.width

//字体
#define HNFont(x) [UIFont systemFontOfSize:x]


//通知名
#define HNNotifacationCenter [NSNotificationCenter defaultCenter]


